<template>
<div>
  
  <el-select v-model="value" placeholder="请选择" @change="changeState">
            <el-option
              v-for="item in state"
              :key="item.value"
              :label="item.label"
              :value="item.value"
              
            >
            </el-option>
          </el-select>
          <!-- <span>{{good}}</span> -->
</div>
</template>

<script>
export default {
  name:'selectGoodHouse',
  props:{
    good:{
      type: Boolean,
      default: true,
    }
  },
  data(){
    return {
      value : this.good,
      state:[
        {
          value:true,
          label:"精品好房"
        },
        {
          value:false,
          label:"非精品好房"
        }
      ],
    }
  },
  methods:{
    changeState(value){
      this.$emit('itemchange', value)
    },
  }
}
</script>

<style>

</style>